約 4,801,708 件
https://w.atwiki.jp/parepan/pages/36.html
DBIをインストールします. インストールの順番は,DBIを先に行い,次に,DBD Pg をインストールします. DBD Pgでインストレーションのテストを行うときに,DBIが必要となるためです. 1.DBIのインストール # su - 一般ユーザ $ cd /usr/loca/src/ $ tar xvfz DBI-1.601.tar.gz $ cd /usr/local/src/DB-1.601 $ perl Makefile.PL $ make $ make test $ su - root Password # cd /usr/local/src/DB-1.601 # make install 2.DBD Pgのインストール # su - # cd /usr/loca/src/ # tar xvfz DBD-Pg-1.49.tar.gz # cd /usr/local/src/DBD-Pg-1.49 # perl Makefile.PL # make # su - postgres $ pg_ctl start←Postgresを起動していない場合のみ入力 $ export PGUSER=postgres # cd /usr/local/src/DBD-Pg-1.49 $ make test $ su - root Password # cd /usr/local/src/DBD-Pg-1.49 # make install 3.pgsqlインストール vi .bash_profile 設定追加 ------------------------------------ POSTGRES_INCLUDE=/usr/lib/pgsql/include POSTGRES_LIB=/usr/lib/pgsql/lib export POSTGRES_INCLUDE export POSTGRES_LIB 設定反映 source ~root/.bash_profile 解凍 インストール tar xvfz pgsql_perl5-xxxxxxxx perl Makefile.PL make make test make install
https://w.atwiki.jp/atwikimyj/pages/21.html
いろんな画像処理が可能なアプリケーション。 画像サイズの判定、リサイズ 画像形式の変更 シャープとかぼかしとかの加工 その他いろいろ。 ●TryThe Homepage perl ImageMagickの説明 http //www.tryhp.net/homeserver16.htm ●jpan tools http //jpan.jp/ja/tools/ImageMagick/.htm インストール 使えるネットサポート でじまさんのレポート http //forum.tsukaeru.net/viewtopic.php?t=1817 これによるとImage MagickというのはUNIXのアプリケーションとperlモジュールの 両方が必要なのかな?と思う。 以下使えるねっとからの転記。 ImageMagickのインストールを再度試してみました。実はソールをコンパイルすると、面倒なことなくあっさりインストールできるようです。以下にインストール手順をあげておきます。 SSHにてサーバにログインします。 適当な作業ディレクトリ(例 /usr/local/src )に移動します。 ImageMagickのソースファイルを取得します。Code wget ftp //ftp.imagemagick.org/pub/ImageMagick/ImageMag... とすると、最新版が得られるはずです。 ダウンロードしてきたファイルを解凍します。先のコマンドで取得したファイルなら、Code tar xzf ImageMagick.tar.gz で解凍できます。 解凍した ImageMagick のディレクトリに移動します。 次のコマンドを実行します。Code ./configure さらに次のコマンドを実行し、ソースをビルドしますCode make ビルドされたファイルをインストールします。Code make install 以上でImageMagickのインストールは完了です。その後、Perl モジュールのインストールを行ってみてください。Perl モジュールのインストールはCode perl -MCPAN -e shell install Image Magick で行えます。 ImageMagickインストールの追記です。先の方法だけですと、インストールしたライブラリが認識されない場合がありますので、以下の作業も行う必要があるかと思います。 SSHでサーバにログインします。 /etc/ld.so.conf ファイルにCode /usr/local/lib という行があるかを確認し、存在しない場合はこれを追加します。Code echo /usr/local/lib /etc/ld.so.conf とすると簡単です。 変更を反映させるため、以下のコマンドを実行します。Code ldconfig 以上でインストールしたImageMagickのライブラリが正しく認識されます。
https://w.atwiki.jp/atwikimyj/pages/40.html
普通の変数とは違い、メモリのアドレスの値を やり取りして効率のよいデータの参照を行うこと。 $a = $hoge; だと$hogeの分だけメモリを使う。そのため$hogeが 巨大だとその分無駄にメモリを使用することになる。 そこで、$hogeが保存されているアドレスの値を使って 効率的に値を参照させる。 $ref = $hogeのメモリのアドレス; ならば、$hogeがどんなに大きな文字列でもそのアドレスの値の 分しかメモリを消費しない。つまり処理速度も速くなる。 スカラーではあんまり使い道がないかもしれないが、 ハッシュなどでは威力を発揮する。 @hogearray = ( $hoge1, $hoge2 , $hoge3 ); と代入するととっても無駄なのでリファレンスを使うと いいかもしれません。 @hogearray = ( \$hoge1, \$hoge2 , \$hoge3 ); ※あとからリファレンスを実際の値に戻さないといけないけど。 リファレンスを変数に代入する方法 $ref_hoge = \@hoge; ちなみに、リファレンスを画面に表示させると print $ref_hoge HASH(X898303) のような表示になる。上記はハッシュリファレンスの場合。 普通のスカラー変数の場合は SCHOLAR(X898303) などとなる。値取れなくて困ったら printで値をとりましょう。 リファレンスから値を変数に代入する方法 リファレンスの値の取得方法は スカラー、オブジェクトの場合 $hoge = $$ref_hoge 配列の場合は @hoge = @$ref_hoge ハッシュの場合は %hoge = %$ref_hoge リズムファクトリー http //www.rfs.jp/sb/perl/02/10.html
https://w.atwiki.jp/kobapan/pages/125.html
1.NTPサーバーのインストール $ sudo apt-get install ntp 2.NTPサーバーの設定 $ sudo gedit /etc/ntp.conf server 0.debian.pool.ntp.org iburst dynamic server 1.debian.pool.ntp.org iburst dynamic server 2.debian.pool.ntp.org iburst dynamic server 3.debian.pool.ntp.org iburst dynamic と書かれている行を下記のように変更する。(同じ行を3つ) server ntp.nict.jp server ntp.nict.jp server ntp.nict.jp 3.ntpdの停止 $ sudo /etc/init.d/ntp stop 4.NTPサーバーと手動で時刻を同期 sudo ntpdate -b ntp.nict.jp 5.NTPの起動 $ sudo /etc/init.d/ntp start 参考 日本標準時プロジェクト 公開NTP
https://w.atwiki.jp/wiki15_cu/pages/4.html
まず始めに まず始めにすることはSSHを設定することです。 DebianではOSのセットアップを行う時、インストーラーデフォルトでセットアップを行うと標準でSSHサーバーもセットアップしてくれます。 サーバーのIPを確認し、ローカルネット内のクライアントマシン(例えばWindows)からSSHを使ってログインすることが出来ます。 ただし、この時点ではパスワードが「プレーンテキスト」として流れてしまっているのでセキュリティは皆無といえます。 最初の目的は、暗号化された通信をSSHで行うということになります。 鍵の作成 HogeHoge@Debian ~$ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/HogeHoge/.ssh/id_rsa) // Enter Created directory /home/HogeHoge/.ssh . Enter passphrase (empty for no passphrase) // ここでパスワード入力 Enter same passphrase again // 今入力したパスワードを入力 Your identification has been saved in /home/HogeHoge/.ssh/id_rsa. Your public key has been saved in /home/HogeHoge/.ssh/id_rsa.pub. The key fingerprint is 9a 9c ba a8 0e f1 dd f6 75 7b 3c 51 9b ac 1d 17 HogeHoge@Debian コマンドを実行すると、どこに鍵を作成するか聞いてきますがそのままEnterを押します。 この場合には、ホームディレクトリに「.ssh」というディレクトリを作成し、そこに鍵を作成します。 次に、鍵のパスワードを入力します。短すぎたり、単調なパスワードを設定しようとすると鍵を作成できない場合があります。 上記のようにパスワード入力後、鍵を保存したとメッセージが出ていればきちんと入力したパスワードで鍵が作成できたことを意味します。 鍵にはRSA鍵とDSA鍵がありますが、RSA鍵の方がより安全です。 よって、なるべくRSA鍵を使いましょう。 鍵について 鍵には公開鍵と秘密鍵の二種類存在します。 これらは必ずペアで意味をなします。どちらか一方でも無くしてしまうと、その鍵はもう使えません。新しく作り直してください。 (もちろん、同じパスワードを入力しても絶対に同じ鍵にはなりません。) 公開鍵は上記で作成した場合、「id_rsa.pub」というファイルのものです。 秘密鍵は上記で作成した場合、「id_rsa」というファイルのものです。 次に公開鍵のファイル名をリネームします。 「.ssh」ディレクトリに移動し、mvコマンドで公開鍵のファイル名を「authorized_keys2」にします。 cd /home/HogeHoge/.ssh mv id_rsa.pub authorized_keys2 秘密鍵については、安全な方法でDebianから取り出しクライアントに移動する必要があります。 もちろん、最も安全な方法は鍵をサーバーで作らないでクライアントで作る事なのですが・・・。 移動手段としては、WindowsからSFTPを用いてDebianにアクセスする方法が簡単かもしれません。 ただし、この段階では通信経路には暗号化されていないデータが流れるので、ローカルネットワークでのみこの方法は有効です。 (といっても、ローカルネット内に悪意を持つユーザーがいる場合はその限りではありませんが。例えば、最初から部屋に LANが備え付けられているマンションでは、多くの場合、V-LANを使っています。V-LANはマンションの全ての部屋は同じサブネットなので、 他人の部屋の通信データを傍受できる場合もある) Windows用SFTPツールとしては、FileZila辺りを使います。 秘密鍵の移動後、サーバーから秘密鍵を削除する事が望ましいです。 SSHでサーバーにアクセス Windowsに秘密鍵を移動できたら、あとはPuttyなどのSSHコンソールを使ってサーバーにアクセスするだけです。 SSHサーバーの設定を変える この時点で、SSHで鍵を使う通信ができるようになりました。 しかし、未だに鍵を使わずにSSH通信ができる環境が設定されています。 これではいろいろとセキュリティ面で不安が多いので、今後はすべてSSHの暗号化通信を使いプレーンテキストでログインできないように設定するべきです。 ここでは、SSHサーバーの設定を変更し、プレーンテキストでのログインを出来ないように設定します。 サーバーの設定は「/etc/ssh/sshd_config」にあります。これをviを使って編集します。 # Package generated configuration file # See the sshd(8) manpage for details # What ports, IPs and protocols we listen for Port 22 # Use these options to restrict which interfaces/protocols sshd will bind to #ListenAddress #ListenAddress 0.0.0.0 Protocol 2 # HostKeys for protocol version 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key #Privilege Separation is turned on for security UsePrivilegeSeparation yes # Lifetime and size of ephemeral version 1 server key KeyRegenerationInterval 3600 ServerKeyBits 768 # Logging SyslogFacility AUTH LogLevel INFO # Authentication LoginGraceTime 600 PermitRootLogin yes StrictModes yes RSAAuthentication yes PubkeyAuthentication yes #AuthorizedKeysFile %h/.ssh/authorized_keys # Don t read the user s ~/.rhosts and ~/.shosts files IgnoreRhosts yes # For this to work you will also need host keys in /etc/ssh_known_hosts RhostsRSAAuthentication no # similar for protocol version 2 HostbasedAuthentication no # Uncomment if you don t trust ~/.ssh/known_hosts for RhostsRSAAuthentication #IgnoreUserKnownHosts yes # To enable empty passwords, change to yes (NOT RECOMMENDED) PermitEmptyPasswords no # Change to no to disable s/key passwords ChallengeResponseAuthentication no # Change to yes to enable tunnelled clear text passwords PasswordAuthentication no # To change Kerberos options #KerberosAuthentication no #KerberosOrLocalPasswd yes #AFSTokenPassing no #KerberosTicketCleanup no # Kerberos TGT Passing does only work with the AFS kaserver #KerberosTgtPassing yes X11Forwarding no X11DisplayOffset 10 PrintMotd no PrintLastLog yes KeepAlive yes #UseLogin no #MaxStartups 10 30 60 #Banner /etc/issue.net Subsystem sftp /usr/lib/sftp-server UsePAM no 変更した箇所はほんの少しで、 「ChallengeResponseAuthentication」をnoに設定し、「UsePAM」もnoに設定しました。 コレにより、ホームディレクトリに「.ssh」ディレクトリがないユーザーや公開鍵が存在しないユーザーのログインが一切できなくなります。 よって、もし今使っている秘密鍵をなくしてしまった場合にはLinuxのコンソールを直接操作して、新しい鍵を作成しなければなりません。 最後に、設定ファイルの変更をサーバーに反映させるために、SSHDを再起動します。 /etc/init.d/ssh restart エラーが出力されなければ、SSHサーバーは設定ファイルを正常に読み込んだということです。 エラーが表示されたり、クライアントからサーバーにアクセスできない場合、正常に動作していない可能性があります。 設定ファイルにミスがないかを確認してください。
https://w.atwiki.jp/tuntun01/pages/8.html
Help installing Debian GNU/Linux Debian basic features Debian 初心者が Debian をコンピュータにインストールする前に知りたいと思うかもしれないようなことを教えます。(安定版)(作業中) How to download Debian GNU/Linux installation CD/DVDs with Jigdo A guide to help any Debian newbie to download CD and DVD images of the Debian installer. The disc images can be burned to CD or DVD to make official Debian installation CDs/DVDs. (Stable article.) How to install Debian GNU/Linux on your computer This HOWTO helps Debian newbies to install Debian GNU/Linux (Etch) using the graphical installer ("installgui"). (Stable article.) Installing Debian on a small partition How to install desktop Debian GNU/Linux 3.1 (Sarge) from CD/DVD. ((Stable article.) How to try out Debian GNU/Linux without installing it(作業完了) Debian 初心者 (Debian "newbie") は、Debian の選びかたについて手助けやアドバイスを求めたほうがいいかもしれません。 LiveCD 版 Debian - Debian Live の入手および利用方法をどうぞ。 Debian for complete computer newbies Stub article - contributions welcome. Help installing software in Debian GNU/Linux Aptitude - using together with Synaptic and Apt-get Help for Debian users using more than one package manager. If you do not use Aptitude exclusively, it may attempt to remove packages that you do not wish to remove. Here is some help for managing this problem. Unofficial Debian packages Where to find .debs for software not available on the Debian mirrors. Module-Assistant - using upstream tarballs A simple hack to use an upstream tarball with Debian s module-assistant for gspca-source Help managing a Debian system Commandline shortcuts Debian newbie help with tab completion, commandline history, copying and pasting text. Manage users and groups Brief newbie help about how to manage users and groups in Debian using Gnome, KDE, generic desktop and commandline tools. Run a program as a different user How to use su, gksu and gksuexec - a guide for Debian newbie users and others. How to configure Sudo to run programs as a different user A newbie guide to using Sudo in Debian GNU/Linux. A normal user can use Sudo to run particular programs with root permissions. Even a newbie can easily configure Sudo using a simple table as an alternative to the Extended Backus-Naur Form used in the Sudoers man (5) page. (Stable article.) How to create a Grub disc to boot a Debian GNU/Linux system How to be prepared for disaster by making a boot floppy or CD to boot your Debian system in case another operating system overwrites your MBR. Shutting down a Debian system Pressing the RESET button is the equivalent of pulling the plug - you are risking file corruption. Here is some help about how to shut down your Debian system safely. Cloning a hard disc This Debian newbie HOWTO explains how to make a clone of a hard disc. If the original hard disc is a failing disc, it must still be working and readable. (Stable article.) Runlevels introduction A guide to help Debian newbies to understand runlevels. Runlevels determine the behaviour of the system once it has booted. (Stable article.) Grep Introduction An introduction to help Debian newbies with the very useful grep program. (Stable article.) Process management Help for Debian newbies about how to manage processes under Debian GNU/Linux. (Stable article.) Debian help system This document is intended to help Debian newbies learn about ways in which they can find help to solve problems in Debian GNU/Linux. (Stable article.) Shortcuts for copying and pasting text Help with to copying and pasting text between X applications and console applications running in a terminal window. There are both keyboard and mouse methods. Written for Debian GNU/Linux. (Stable article.) Beginner s guide to Vi Improved (Vim) This document will help newbies with the console version of vim from Debian. Although much of what is discussed here will also apply to gvim, it may or may not work with gvim. (Stable article.) Using Joe as your editor Joe is a simple commandline editor apparently based upon/inspired by the old DOS word processor called Wordstar. Help for Debian newbies. (Stable article.) Synchronising laptop and desktop files using Unison If you have a Debian home network, you can edit files on one computer and use Unison to update another computer. This can help if you do work on a laptop away from the network for some of the time. (Stable article.) Help with network and internet Broadband - setting up an ethernet ADSL modem/router This help is for an ethernet ADSL modem/router on a Debian system, not a USB ADSL modem. Setting up a serial modem using Wvdial This newbie article explains how to install and use a serial modem for internet access on a Debian GNU/Linux computer using Wvdial. (Stable article.) How to set up a wireless network card using Ndiswrapper Both these articles offer help for setting up wireless cards on Debian systems. They are on the Ndiswrapper wiki. [http //ndiswrapper.sourceforge.net/mediawiki/index.php/InstallDebianSarge Installing Ndiswrapper in Debian Sarge] [http //ndiswrapper.sourceforge.net/mediawiki/index.php/InstallDebianEtch Installing Ndiswrapper in Debian Etch] Setting up a personal firewall on Debian using Guarddog Guarddog use a simple but flexible GUI interface to configure iptables. It is suitable for Debian newbies and makes a great personal firewall for a standalone or networked PC. (Stable article.) Firewall with masquerading A HOWTO to help you to set up a simple firewall and share your internet connection with Shorewall in Debian Etch Installing Samba Linux/Windows networking These are some notes I made when I installed Samba in Debian Sarge. Mail - retrieving How to retrieve mail from a POP account using Getmail (this article is work in progress) Mail - sending How to send mail using Postfix with smarthost configuration Mail - sorting and filtering How to sort and filter your mail with Maildrop (this article is work in progress) Using RSS|RSS - how to use RSS feeds How to install Liferea (Linux feed reader) in Debian and help with using it on the NewbieDOC wiki. WWW Clients in Debian Firefox (Iceweasel) Opera Lynx Elinks Help with office applications Installing Adobe Reader|Installing Adobe Reader (Acrobat) Adobe Reader is non-Free software, so there is no official Debian package Help with multimedia in Debian Sound in Debian GNU/Linux How to get a sound card working in Debian. Managing a Creative Zen mp3 jukebox with Gnomad2 Gnomad2 transfers files to and from a Creative Zen mp3 jukebox. Help with printing Setting up a parallel printer using CUPS This article explains how to install a parallel port printer on a Debian GNU/Linux computer using CUPS (the Common Unix Printing System). (Formal article). Help with programming Installing Java Java is non-Free software, so there is no official Debian package -
https://w.atwiki.jp/atwikimyj/pages/39.html
本当にいまさらなのだが、パスワードはハッシュで保存しないとだめよ。 平分で通信、保存なんて絶対ダメよ。 ということで、ハッシュ化。 cpan使います。 install Digest でDigestをインストール。 perl スクリプトで use Digest SHA1; my $pwd_hash = sha1_hex($pwd); これで終わり。 http //www.slogical.co.jp/tech/perl_digestsha1.html
https://w.atwiki.jp/know-unix/pages/55.html
Short overview of what I did to get my sound card working properly in at least VLC and Opera (flash video), which is good enough for now. Could not get the default movie player and rhythmbox working sad This website was key click here There are three things I did that are probably related, but I m not sure what actually triggered it to work. 1. In alsamixer ("alsamixer" in terminal), set the view to "all" (press f5) and unmute (press "m") S/PDIF 2. In Volume control (System Settings Sound) enable all IEC958 or equivalent (fiddle around with the settings, you ll find it). 3. In the Multimedia System Selector (in terminal "gstreamer-properties"), set default output plugin to ALSA and put the device to digital ("ALC889" for me). Both analog and digital worked for me. If you hit test and get a super annoying beep, you know it works For mplayer, check out page for ubuntu http //my.opera.com/Smeets/blog/2011/08/02/spdif-digital-out-in-debian-and-maybe-other-linux-distros EOL
https://w.atwiki.jp/linuxjapanwiki/pages/105.html
現在、LinuxJapanWikiはatwikiから Miraheze に移行中です。このページは2023年9月7日にMirahezeに移行しました。最新の情報は Mirahezeのページ で確認してください。 Raspberry Pi OS ▲Raspberry Piのロゴ Raspberry Pi OSは、子供の教育及び小規模な開発者向けに開発されている、Raspberry Pi用の Debian系 Linuxディストリビューション。 2020年5月に正式名称がRaspbianからRaspberry Pi OSへ変更された。 ▲デスクトップ画面(Based by Debian 10 "buster") 各種データ 開発者 Raspberry Pi Foundation 系統 Debian系 開発状況 開発中 初版 2012年6月 最新版 Raspberry Pi OS May 3rd 2023 / 2023年5月3日 アップデート方式 APT パッケージ管理 dpkg カーネル Linux デスクトップ環境 LXDE プラットフォーム armhf, i386 ウェブサイト https //www.raspberrypi.org/downloads/raspberry-pi-os/ 概要 Raspberry Pi Foundationには直接的に付属していないものの、Raspberry Pi OSは正式にRaspberry Piに対応したOSである。 初期のRaspbianはマイク・トンプソンや、ピーター・グリーンによって完成し 、2012年6月から現在まで開発が続けられている。 浮動小数点演算命令をもつCPUを高速に活用できる「hard-float」(反対語は「soft-float」)でコンパイルしたソフトウェアを実行できる特長をもつ。 エディション Raspberry Pi OSのエディションは2020年現在3つある。 Raspberry Pi OS with desktop and recommended software Raspberry Pi Foundationが推奨するソフトウェア一式が入ったバージョン。 Raspberry Pi OS with desktop GUIを提供するX Window Systemをはじめ、PCのDesktopと同様に、ブラウザ、ワープロ、表計算、プレゼンテーションなど事務用の必要最小限のソフトウェアも同梱している。 使用するには4GB以上のImageで8GBのSDが必要。 Raspberry Pi OS Lite コマンドラインで利用する軽量版で、事務用などのソフトウェアの他、GUIを提供するX Window Systemも最初は入っていない。 コマンドには、Linux Standard Baseで参照しているコマンド、Debian固有のコマンド(apt)、Raspberry Pi OS固有のコマンド(raspi-config)などがあり、これらのコマンドはDesktopでも利用できる。 また、IntelやAMDのCPUを採用しているパソコン向けに設計されたi386版もある。 導入方法 導入には複数の方法がある。 Raspberry Pi OS導入済microSDメモリーカード(以下SD)を購入する。 NOOBS LiteをSDにコピー後、Raspberry Piで起動し、Wifi経由でRaspberry Pi OSのDesktopかLiteを導入する。 NOOBSをSDにコピーする。Raspberry Pi OSを含んでいる。 SDをフォーマットして、Raspberry Pi OSのイメージファイルを書き込む。 Raspberry Pi Imagerを使用してSDカードをフォーマットしRaspberry Pi OSのDesktopかLiteを選択し書き込む 派生ディストリビューション Kona Linux Pi 外部サイト 公式サイト(英語) Raspberry Pi公式サイト(英語) 関連記事 Debian GNU/Linux コメント欄 コメント欄の利用に関してはコメント欄の利用を参照して下さい。 本ページに無関係な内容のコメントは一律して削除されます。Wiki運営に関しては Wiki運営掲示板 にお願いします 。 投稿されているコメントへの返信の際は、必ず返信したいコメント横の○にチェックを入れて返信して下さい。 + 上記の内容を守れる方のみご利用ください。 上記の内容を守れる方のみご利用ください。 コメントログ作成 - 名無しさん (2020-05-03 18 42 30) 名前 コメントログ
https://w.atwiki.jp/kobapan/pages/319.html
エクセル Gnumeric $ sudo apt install gnumeric 提案パッケージとして以下が出てきたので、 gnumeric-plugins-extra fonts-liberation ttf-mscorefonts-installer docbook-xsl ttf-mscorefonts-installer を入れておく。 Debian 8 (Jessie)のstableは、1.12.18-2。何もしなくても、日本語編集可、メニューも日本語。 ワード AbiWord AbiWord 3.0.0 becomes the first release of AbiWord having the complete native Unicode support for Windows.ということだけど、linuxでも日本語使えるようになったんだろうか。 Debian 8 (Jessie)のstableが 3.0.0-8+b1なので入れてみる。 $ sudo apt install abiword 日本語で編集して保存・終了。再度開いてちゃんと表示された。 総合ソフト Apache OpenOffice.org LibreOffice 便利だけど、でかいし、重いので、できれば入れたくない。